From 6fc1e1272c056ead0197181f4a393f028eab2731 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Tue, 15 May 2007 19:00:48 +0100 Subject: [PATCH] [XEND] Write the default ABI to the xenstore entry for each frontend device. This allows to run older kernels in a 32on64 mixed environment. Signed-off-by: Ian Campbell --- tools/python/xen/xend/XendDomainInfo.py | 4 ++++ tools/python/xen/xend/server/DevController.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 2d3174d8d7..ede2f27c36 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -357,6 +357,8 @@ class XendDomainInfo: self.console_port = None self.console_mfn = None + self.native_protocol = None + self.vmWatch = None self.shutdownWatch = None self.shutdownStartTime = None @@ -1520,6 +1522,8 @@ class XendDomainInfo: self.console_mfn = channel_details['console_mfn'] if 'notes' in channel_details: self.info.set_notes(channel_details['notes']) + if 'native_protocol' in channel_details: + self.native_protocol = channel_details['native_protocol']; self._introduceDomain() diff --git a/tools/python/xen/xend/server/DevController.py b/tools/python/xen/xend/server/DevController.py index ab7ac3219a..c43ed2681b 100644 --- a/tools/python/xen/xend/server/DevController.py +++ b/tools/python/xen/xend/server/DevController.py @@ -459,6 +459,8 @@ class DevController: 'state' : str(xenbusState['Initialising']) }) + if self.vm.native_protocol: + frontDetails.update({'protocol' : self.vm.native_protocol}) backDetails.update({ 'domain' : self.vm.getName(), -- 2.30.2